#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>
using namespace std;

class Solution {
public:
    vector<int> singleNumber(vector<int>& nums) {
        int oxnum = 0;
        int i1 = 0, i2 = 0;
        for (int n : nums)
        {
            oxnum ^= n;
        }

        int l = (oxnum == INT_MIN ? INT_MIN : oxnum & (-oxnum));
        for (int n : nums)
        {
            if (l & n)
            {
                i1 ^= n;
            }
            else
            {
                i2 ^= n;
            }
        }
        return { i1, i2 };
    }
};

int main()
{
	int i = -23584;

	cout << (i & ~i) << endl;

	return 0;
}